package com.kefu.call.vo;

import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;
import com.kefu.common.context.KefuContext;
import com.kefu.common.vo.AbstractUpdateVo;
import com.kefu.call.model.CdrCustomer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author CodeGenerator
 * @date 2022/07/28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(description = "计费_计费客户")
public class CdrCustomerUpdateVo extends AbstractUpdateVo<CdrCustomer,Long> {

    @NotNull
    @ApiModelProperty(value = "主键")
    private Integer oid;
//    
//    @ApiModelProperty(value = "名称")
//    private String name;
//    
//    @ApiModelProperty(value = "余额")
//    private String balance;
    
    @ApiModelProperty(value = "透支限额")
    private String overdraft;
//    
//    @ApiModelProperty(value = "来区分代理商还是普通用户")
//    private String company;

    @Override
    public CdrCustomer convert() {
        CdrCustomer info = new CdrCustomer();
//        info.setName(name);
//        info.setBalance(balance);
        info.setOverdraft(overdraft);
//        info.setCompany(company);
        KefuContext context = KefuContext.getKefuContext();
        info.setOid(oid);
        return info;
	}
}